package com.chixing.day05_oop.work;

public class PersonOrder extends Order{
    private String personName;

    public PersonOrder(Integer orderId, Integer orderNumber, String personName) {
        super(orderId, orderNumber);
        this.personName = personName;
    }

    public PersonOrder(String personName) {
        this.personName = personName;
    }

    public PersonOrder() {
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    @Override
    public String toString() {
        return super.toString()+"PersonOrder{" +
                "personName='" + personName + '\'' +
                '}';
    }
}
